package com.chushouya.manager.dto.admin.user;

import com.chushouya.manager.constants.UserStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


@ApiModel("用户列表")
@Data
public class UserListDTO {

    private Long userId;

    private String userName;

    private String userPhone;

    private Integer status;

    private String statusText;

    private Date lastLoginTime;

    private String lastLoginIp;

    private String limitRule;

    @ApiModelProperty("用户注册时间")
    private Date createTime;

    public String getStatusText() {
        return UserStatusEnum.getDesc(this.status);
    }



}
